<template>
	<view>
		<view>姓名：{{user.name}}--年龄：{{user.age}}</view>
	</view>
	<navigator url="/pages/4_8onLoad/4_8onLoad2?name=黄五&age=20">跳转到onLoad2页面</navigator>
</template>

<script setup>
import { ref } from 'vue';
import { onLoad } from '@dcloudio/uni-app'
const user = ref({
	name:"张三",
	age:18
})

onLoad((e)=>{
	console.log(user.value.name);
	console.log(user.value.age);
	user.value = {
		name:"李四",
		age:30
	}
})

	
</script>

<style lang="scss" scoped>
	       
</style>
